ListFragment

Static library support version of the framework's android.app.ListFragment. Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Get the ListAdapter associated with this fragment's ListView.
Link copied to clipboard
Get the fragment's list view widget.
Link copied to clipboard
Get the cursor row ID of the currently selected list item.
Link copied to clipboard
Get the position of the currently selected list item.
Link copied to clipboard
open fun onCreateView(@NonNull inflater: LayoutInflater, @Nullable container: ViewGroup, @Nullable savedInstanceState: Bundle): View
Provide default implementation to return a simple list view.
Link copied to clipboard
open fun onDestroyView()
Detach from list view.
Link copied to clipboard
open fun onListItemClick(@NonNull l: ListView, @NonNull v: View, position: Int, id: Long)
This method will be called when an item in the list is selected.
Link copied to clipboard
open fun onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle)
Attach to list view once the view hierarchy has been created.
Link copied to clipboard
Get the ListAdapter associated with this fragment's ListView.
Link copied to clipboard
The default content for a ListFragment has a TextView that can be shown when the list is empty.
Link copied to clipboard
open fun setListAdapter(@Nullable adapter: ListAdapter)
Provide the cursor for the list view.
Link copied to clipboard
open fun setListShown(shown: Boolean)
Control whether the list is being displayed.
Link copied to clipboard
Like setListShown, but no animation is used when transitioning from the previous state.
Link copied to clipboard
open fun setSelection(position: Int)
Set the currently selected list item to the specified position with the adapter's data